package com.ruoyi.web.course.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
        import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.web.course.dto.TrainVideoPlayRecordDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.course.mapper.TrainVideoPlayRecordMapper;
import com.ruoyi.web.course.domain.TrainVideoPlayRecord;
import com.ruoyi.web.course.service.ITrainVideoPlayRecordService;

/**
 * 视频播放记录Service业务层处理
 *
 * @author 范书铭
 * @date 2024-10-10
 */
@Service
public class TrainVideoPlayRecordServiceImpl extends ServiceImpl<TrainVideoPlayRecordMapper, TrainVideoPlayRecord> implements ITrainVideoPlayRecordService {
    @Autowired
    private TrainVideoPlayRecordMapper trainVideoPlayRecordMapper;


    /**
     * 查询视频播放记录列表
     *
     * @param trainVideoPlayRecord 视频播放记录
     * @return 视频播放记录
     */
    @Override
    public List<TrainVideoPlayRecordDto> selectTrainVideoPlayRecordList(TrainVideoPlayRecord trainVideoPlayRecord) {
        return trainVideoPlayRecordMapper.selectVideoPlayRecordDto(trainVideoPlayRecord);
    }
}